<?php
$conn = mysql_connect ( "localhost", "root", "root" ) or die ( "数据库连接失败:" . mysql_errno () );
mysql_set_charset ( "utf8" );
mysql_select_db ( "workstatus", $conn );
?>